package com.ruoyi.quartz.task;

import cn.hutool.log.LogFactory;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.quartz.service.AntiHomingTaskService;
import com.ruoyi.quartz.util.AbstractQuartzJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 课题四：IP抗归属定时任务
 */
@Component("antiHomingTaskJob")
public class AntiHomingTaskJob {

    private static final Logger log = LoggerFactory.getLogger(AntiHomingTaskJob.class);

    @Autowired
    private AntiHomingTaskService antiHomingTaskService;

    /**
     * 定时查询预测IP-组织关系抗归属状态
     */
    public void predictAntiHomingStatus() {
        antiHomingTaskService.predictAntiHomingTask();
    }

    /**
     * 定时查询确定IP-组织风险抗归属任务状态
     */
    public void getAntiHomingStatus() {
        antiHomingTaskService.getAntiHomingStatus();
    }
}
